<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <p>handler.get() 方法用于拦截对象的读取属性操作。</p>
    <script>
        var proxy = new Proxy({}, {
            get: function (target, propKey, receiver) {
                debugger;
                return target[propKey]
                console.log("lalal 返回值啦")
            }
        })

        proxy.a = 1
        console.log( proxy.a)

    </script>
</body>

</html>